package com.gxa.meiye.admin.platform.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gxa.meiye.admin.platform.pojo.vo.AdvertVo;
import com.gxa.meiye.admin.platform.pojo.vo.AdvertisementVo;
import com.gxa.meiye.admin.platform.pojo.vo.SlideshowVo;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface AdvertisementMapper extends BaseMapper<AdvertisementVo> {

    @Select("SELECT id,title,url,created_time\n" +
            "  FROM t_advertisement")
    List<AdvertVo> selectAdvertList();

    @Select("SELECT id,title,pic,status,created_time\n" +
            "  FROM t_advertisement")
    List<SlideshowVo> selectSlideshowList();
}
